package javase0822;

public class Demo03 {
    public static void main(String[] args) {
        // 循环 乘法表
        //  5行3列  3 * 5 = 15   3 * 6 = 18
        System.out.println("乘法表");
        for (int i = 0; i < 9; i++) {
            String s9 = "";
            for (int j = 0; j < i + 1; j++) {
                s9 += (j + 1) + "*" + (i + 1) + "=" + ((j + 1) * (i + 1)) + "\t";

            }

            System.out.println(s9);
        }
    }
}
